package com.neusoft.nep.entity;

import java.io.Serializable;
import java.util.Objects;

public class nepsFeedback implements Serializable {
    private int number;
    private String username;
    private String phoneNumber;
    private String province;
    private String city;
    private String address;
    private String level;
    private String content;
    private String date;


    public void setID(String ID) {
        this.ID = ID;
    }

    public String getID() {
        return ID;
    }

    private String ID;
    public String getUsername() { return username; }
    public String getPhoneNumber() { return phoneNumber; }
    public String getProvince() { return province; }
    public String getCity() { return city; }
    public String getAddress() { return address; }
    public String getLevel() { return level; }
    public String getContent() { return content; }
    public String getDate() { return date; }
    public int getNumber(){ return number; }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public nepsFeedback(int number, String username, String phoneNumber, String province, String city, String address, String level, String content, String date) {
        this.number = number;
        this.username = username;
        this.phoneNumber = phoneNumber;
        this.province = province;
        this.city = city;
        this.address = address;
        this.level = level;
        this.content = content;
        this.date = date;
    }

    public nepsFeedback(){}

    @Override
    public boolean equals(Object o) {
        if (o == null || getClass() != o.getClass()) return false;
        nepsFeedback that = (nepsFeedback) o;
        return number == that.number && Objects.equals(username, that.username) && Objects.equals(phoneNumber, that.phoneNumber) && Objects.equals(province, that.province) && Objects.equals(city, that.city) && Objects.equals(address, that.address) && Objects.equals(level, that.level) && Objects.equals(content, that.content) && Objects.equals(date, that.date);
    }

    @Override
    public int hashCode() {
        return Objects.hash(number, username, phoneNumber, province, city, address, level, content, date);
    }
}